package com.aps.service.rep;

import org.springframework.data.jpa.repository.JpaRepository;

import com.aps.entity.domain.dish.DishInterval;

/**
 * @author liaoguangan
 * @description <>
 * @date 2018/4/2 11:50
 */
public interface DishIntervalReq extends JpaRepository<DishInterval, String> {

    /**
     * 获取前序间隔时长
     * @param preCode
     * @param nextCode
     * @return
     */
    DishInterval findByPreDishCodeAndNextDishCode(String preCode, String nextCode);
}
